package com.netflix.controller;

import com.netflix.dto.UserDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ytj
 * @date 2021/12/16
 */
@RestController
public class ProviderController {

    @GetMapping("/get_demo")
    public UserDTO getDemo(UserDTO userDTO){
        return userDTO;
    }

    @PostMapping("/post_demo")
    public UserDTO postDemo(UserDTO userDTO){
        return userDTO;
    }
}
